package com.yang.service;

import java.util.List;
import java.util.Set;

import com.yang.entity.Resource;
import com.yang.entity.Roles;
import com.yang.model.MenuBean;
import com.yang.model.Page;

public interface ResourceService {
    public Resource createResource(Resource resource);
    public Resource updateResource(Resource resource);
    public boolean deleteResource(String resourceId);
    public Resource findOne(String resourceId);
    public List<Resource> findAll();
    public Page<Resource> getPage(String nowPage,String pageSize);
    public MenuBean getAllMenus();
	public MenuBean getAllMenus(Set<Roles> roles);
	public Resource save(Resource res);
}
